@echo off

set REVISION=%1
set PRODUCT=%2
set TAG=%3

if "m%TAG%m" == "mm" ( 
   echo Usage: "tag <revision> <product> <tag>"
   GOTO DONE
)

svn copy -r %REVISION% http://svn.mitra.com/svnrepo/%PRODUCT%/trunk http://svn.mitra.com/svnrepo/%PRODUCT%/tags/%PRODUCT%_%TAG% -m "tagging build %TAG%"
@rem svn copy -r %REVISION% http://svn.mitra.com/svnrepo/mvf-svn-tools/trunk http://svn.mitra.com/svnrepo/%PRODUCT%/tags/%PRODUCT%_%TAG%/mvf-svn-tools -m "tagging build %TAG%"

:DONE
